package com.emep.changzhi.analyse.repository.information;

import com.emep.changzhi.analyse.entity.error.AirQuality;
import com.emep.changzhi.analyse.entity.information.DataMessageRecordWarning;
import com.emep.changzhi.analyse.entity.information.SysMailInfo;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import javax.transaction.Transactional;
import java.util.List;

/**
 * @author Wangcc
 * @version V1.0
 * @Description: 消息推送记录持久层
 * @date 2018/2/27 17:21
 */
public interface DataMessageRecordWarningRepository extends CrudRepository<DataMessageRecordWarning,Long> {
    @Query("select * from data_message_record_warning limit :pageSize")
    List<DataMessageRecordWarning> dataMessageRecordWarningHome(@Param("pageSize") Integer pageSize);
    @Query("select * from data_message_record_warning where token(id)>token(:id) limit :pageSize")
    List<DataMessageRecordWarning> dataMessageRecordWarningFlip(@Param("id")String id,@Param("pageSize") Integer pageSize);

}
